package cn.antblog.designTemp.wrapper.rice;

/**
 * @Author cgz
 * @Date 2022/11/17 14:54
 */
//抽象装饰（继承父类并且扩展，比如在炒饭或者炒面的基础上再加一些产品进来：鸡蛋、培根）
public abstract class Garnish extends FastFood {
    private FastFood fastFood;

    public FastFood getFastFood() {
        return fastFood;
    }

    public void setFastFood(FastFood fastFood) {
        this.fastFood = fastFood;
    }

    public Garnish(FastFood fastFood, float price, String desc) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}

